package com.chen.wow.day04.AOP;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class MyConfig {
	@Bean
	public Performance performance(){//接口，不要用Movie
		return new Movie();
	}
	
	@Bean
	public Audience audience(){
		return new Audience();
	}
	
	@Bean
	public Encoreable encoreable(){
		return new EncoreableImpl();
	}
	
	@Bean
	public EncoreableIntroducer encoreableIntroducer(){
		return new EncoreableIntroducer();
	}
	
}